package com.cf.domain.vo;

import com.cf.domain.pojo.Team;
import com.cf.domain.pojo.TeamMember;
import com.cf.enums.Area;
import com.cf.enums.RaceType;
import com.cf.enums.Source;
import lombok.Data;

import java.util.List;

@Data
public class TeamVO {

    private long id;

    private String name;

    private String phone;

    private String email;

    private int area;

    private Integer type;

    private Integer source;

    private Team team;

    private List<TeamMember> members;

    public String getAreaName(){
        return Area.of(this.area).getName();
    }

    public String getSourceName(){
        return Source.valueOf(this.source).getName();
    }

    public String getTypeName(){
        return RaceType.valueOf(this.type).getName();
    }
}
